# Maintainer: Tobias Powalowski <tpowa@archlinux.org>

pkgname=spandsp
pkgver=0.0.6
pkgrel=4
pkgdesc="A DSP library for telephony"
arch=('x86_64')
license=('GPL')
url="https://www.soft-switch.org/"
depends=('libtiff')
source=(https://www.soft-switch.org/downloads/$pkgname/$pkgname-$pkgver.tar.gz)
sha512sums=('16bb215ca89a39282e832403f69bc4c98ad3fe35ab3a6eb4731ee5029a6acd9b2df243c3701de845441cbdc16c88b3cd398ef15dc3502e45d5aeca8a161917d4')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

check() {
   cd $pkgname-$pkgver
   make check
}  

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
